package com.jwsoft.manager.common.enums;

public enum HouseholdBdEnum {
    wbd("0", "未必对"),
    ok("1", "比对成功"),
    error("2", "比对失败"),
    ;

    private String type;
    private String name;

    HouseholdBdEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static HouseholdBdEnum getByType(String type) {

        for (HouseholdBdEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
